package com.ssl.ware.repo;

import com.ssl.ware.pojo.ProductFreight;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProductFreightRepo extends JpaRepository<ProductFreight, Long> {
    @Query(value = "select * from product_freight where shopId =?1 and skuId in ?2", nativeQuery = true)
    List<ProductFreight> getByShopIdAndSkuIdIn(Integer shopId, List<Long> skuIds);
}
